package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存记录对象 inventory
 *  是库位的保存产品的清单，
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存记录id */
    private String inventoryId;

    /** 物品id */
    @Excel(name = "物品id")
    private String materialsId;

    /** 库位编号id */
    @Excel(name = "库位编号id")
    private String storageLocationId;

    /** 库存状态 */
    @Excel(name = "库存状态")
    private String inventoryState;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private String inventoryNum;

    /** 物品单位 */
    @Excel(name = "物品单位")
    private String inventoryUnit;

    private Materials materials;

    public void setInventoryId(String inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public String getInventoryId() 
    {
        return inventoryId;
    }
    public void setMaterialsId(String materialsId) 
    {
        this.materialsId = materialsId;
    }

    public String getMaterialsId() 
    {
        return materialsId;
    }

    public String getStorageLocationId() {
        return storageLocationId;
    }

    public void setStorageLocationId(String storageLocationId) {
        this.storageLocationId = storageLocationId;
    }

    public void setInventoryState(String inventoryState)
    {
        this.inventoryState = inventoryState;
    }

    public String getInventoryState() 
    {
        return inventoryState;
    }
    public void setInventoryNum(String inventoryNum) 
    {
        this.inventoryNum = inventoryNum;
    }

    public String getInventoryNum() 
    {
        return inventoryNum;
    }
    public void setInventoryUnit(String inventoryUnit) 
    {
        this.inventoryUnit = inventoryUnit;
    }

    public String getInventoryUnit() 
    {
        return inventoryUnit;
    }

    public Materials getMaterials() {
        return materials;
    }

    public void setMaterials(Materials materials) {
        this.materials = materials;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("materialsId", getMaterialsId())
            .append("warehouseId", getStorageLocationId())
            .append("inventoryState", getInventoryState())
            .append("inventoryNum", getInventoryNum())
            .append("inventoryUnit", getInventoryUnit())
            .toString();
    }
}
